import 'package:json_annotation/json_annotation.dart';
part 'kh_popularity_model.g.dart';

@JsonSerializable()
class KHPopularityModel {
//icon图  当isInvalid=true时，该值返回灰图
  String? iconUrl;
//等级背景色"#BABABA,#959595", //icon图  当isInvalid=true时，该值返回灰的背景色
  String? backgroundColor;
//等级名字
  String? levelName;
//等级编号
  int? levelCode;
//人气值
  int? hotValue;
//是否失效（true或false）
  bool? isInvalid;

  bool? isNoName;

  /// 等级宽
  int? levelNameWidth;

  int? userId;

//财富等级新增
//等级分组名字
  String? groupName;
//财富值
  int? wealthValue;
//是否显示长的有文字的财富等级样式
  bool? isShowWealthName;

  KHPopularityModel();
  factory KHPopularityModel.fromJson(Map<String, dynamic> json) =>
      _$KHPopularityModelFromJson(json);
  Map<String, dynamic> toJson() => _$KHPopularityModelToJson(this);
}
